
pkgname=attr
pkgver=2.4.48
pkgrel=1
pkgdesc="Extended attribute support library for ACL support"
arch=('x86_64')
url="https://savannah.nongnu.org/projects/attr"
license=('LGPL')
groups=('base')
depends=('glibc') 
makedepends=('gettext')
options=('!libtool')
source=("https://download.savannah.gnu.org/releases/attr/${pkgname}-${pkgver}.tar.gz")
md5sums=('bc1e5cb5c96d99b24886f1f527d3bb3d')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr \
    --libdir=/usr/lib \
    --libexecdir=/usr/lib
  make
}

package() {
  cd ${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install
  
  rm -f ${pkgdir}/usr/lib/libattr.a
}
